import java.util.Arrays;
import java.util.Random;

public class Main {
    public static void main(String[] args) {
        Random random=new Random();
        int[] a=new int[11];
        for (int i = 0; i <= 10; i++) {
            a[i]=random.nextInt(100);
        }
        System.out.println(Arrays.toString(a));
        long startTime = System.nanoTime();
        InsertSort s=new InsertSort(a);
        s.zhijieinsertSort();
        long endTime = System.nanoTime();
        s.print();
        System.out.println("\n");
        System.out.println("程序运行时间： " + (endTime - startTime) + "ns");
    }
}
